#!/bin/sh

chown www-data:www-data /data/log/ -R
echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config

# ============ php-mcrypt with sasl ============
# 修复没有添加配置文件

#cd /etc/php/5.6/fpm/conf.d
#ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini
#cd /etc/php/5.6/cli/conf.d/
#ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini

# ============ php-protobuf ============
#php so扩展放在了FileRewrite 目录下
#echo "extension=protobuf.so" >/etc/php/5.6/mods-available/protobuf.ini
#cd /etc/php/5.6/fpm/conf.d
#ln -s ../../mods-available/protobuf.ini 20-protobuf.ini
#cd /etc/php/5.6/cli/conf.d/
#ln -s ../../mods-available/protobuf.ini 20-protobuf.ini



# ============ thrift_protocol ============#
#echo "extension=thrift_protocol.so" >/etc/php/5.6/mods-available/thrift_protocol.ini
#cd /etc/php/5.6/fpm/conf.d
#ln -s ../../mods-available/thrift_protocol.ini 20-thrift_protocol.ini
#cd /etc/php/5.6/cli/conf.d/
#ln -s ../../mods-available/thrift_protocol.ini 20-thrift_protocol.ini



# ============ crontab ===============
# cat <<EOT


# */1  * * * *  root  /usr/bin/flock -xn /tmp/push_msg-dt.lock -c '/usr/bin/php /data/www/dt/Admin/crond/push_msg.php'
# */1  * * * *  root  /usr/bin/flock -xn /tmp/push_sms-dt.lock -c '/usr/bin/php /data/www/dt/Admin/crond/push_sms.php'
# 30   0 * * *  root  /usr/bin/php /data/www/dt/Admin/crond/ekp_synchronize.php

# EOT >> /etc/crontab
